package com.xc.shopping_font.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName(value = "products")
public class Goods implements Serializable {


    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;


    private String name;

    @TableField("goods_pic")
    private String goodsPic;

    @TableField("new_price")
    private float newPrice;

    @TableField("old_price")
    private float oldPrice;

    private String about;

    private Integer sort;

    private float repertory;

    @TableField("starting_num")
    private Integer startingNum;

    @TableField("on_sale")
    private Integer onSale;

    @TableField("ship_address")
    private String shipAddress;

    @TableField("category_id")
   private Long categoryId;

    private String description;

    @TableField(exist = false)
    private Integer quantity;




}
